package io.renren.modules.cat.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.cat.dao.BasicDao;
import io.renren.modules.cat.entity.BasicEntity;
import io.renren.modules.cat.service.BasicService;


@Service("basicService")
public class BasicServiceImpl extends ServiceImpl<BasicDao, BasicEntity> implements BasicService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BasicEntity> page = this.page(
                new Query<BasicEntity>().getPage(params),
                new QueryWrapper<BasicEntity>()
        );

        return new PageUtils(page);
    }

}